import requst from '@/utils/request'
//获取商品列表
export const getProductListService = (params) => {
  console.log("jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj",params)
  return requst.get('/admin/product/list',{params})
}
//添加商品
export const addProductListService = (data) => {
  console.log("\\\\\\\\\\\\\\\\\\\\\\\\",data)
  return requst.post('/admin/product',data)
}
//修改商品
export const updateProductListService = (data) => {
  return requst.put('/admin/product',data)
}
//删除商品
export const deleteProductListService = (ids) => {
  return requst.delete(`/admin/product?ids=${ids}`)
}